package cz.apnetis.oauth;

import org.springframework.security.oauth.provider.BaseConsumerDetails;

/**
 * @author Ryan Heaton
 */
public class ApnetisConsumerDetails extends BaseConsumerDetails {

  private String displayName;
  private String resourceName;
  private String resourceDescription;

  /**
   * The display name of the consumer.
   *
   * @return The display name of the consumer.
   */
  public String getDisplayName() {
    return this.displayName;
  }

  /**
   * The display name of the consumer.
   *
   * @param displayName The display name of the consumer.
   */
  public void setDisplayName(final String displayName) {
    this.displayName = displayName;
  }

  /**
   * The name of the resource that this consumer can be granted access to.
   *
   * @return The name of the resource that this consumer can be granted access to.
   */
  @Override
  public String getResourceName() {
    return this.resourceName;
  }

  /**
   * The name of the resource that this consumer can be granted access to.
   *
   * @param resourceName The name of the resource that this consumer can be granted access to.
   */
  @Override
  public void setResourceName(final String resourceName) {
    this.resourceName = resourceName;
  }

  /**
   * The description of the resource that this consumer can be granted access to.
   *
   * @return The description of the resource that this consumer can be granted access to.
   */
  @Override
  public String getResourceDescription() {
    return this.resourceDescription;
  }

  /**
   * The description of the resource that this consumer can be granted access to.
   *
   * @param resourceDescription The description of the resource that this consumer can be granted access to.
   */
  @Override
  public void setResourceDescription(final String resourceDescription) {
    this.resourceDescription = resourceDescription;
  }
}
